package com.ruoyi.biz.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <Info prefix="2021-02-19 11:23:17.187" suffix="Fail" ResultFolder="1.构建并发送正确的Sec PDU给待测ECU.7db9895c-c13d-456d-8a8c-025389a34485" isExpanded="0" Description="1.构建并发送正确的Sec PDU给待测ECU">
 <_isExpanded>0</_isExpanded>
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)   //忽略掉xml里不关注的element
public class CaseResultInfo implements Serializable {
    @JacksonXmlProperty(isAttribute = true)
    private String prefix;
    @JacksonXmlProperty(isAttribute = true)
    private String suffix;


    @JacksonXmlProperty(localName="ResultFolder",isAttribute = true)
    private String resultFolder;

    @JacksonXmlProperty(localName="Description", isAttribute = true)
    private  String description;
    @JacksonXmlProperty(localName="_isExpanded")
    private  int expanded;

    @JsonProperty("Info")
    @JacksonXmlElementWrapper(useWrapping = false)
    private List<CaseResultInfo> info;
    }

